"just" has many definitions and uses. 4a in Google's on-line dictionary is the use the OP is thinking of. In my experience you might hear this use, but it is just a bit substandard. In other words, if "just" means "only," use "only."
just jəst/ adjective adjective: just; superlative adjective: justest
1.
based on or behaving according to what is morally right and fair.
"a just and democratic society"
synonyms: fair, fair-minded, equitable, even-handed, impartial, unbiased, objective, neutral, disinterested, unprejudiced,
open-minded, nonpartisan; More
honorable, upright, decent, honest, righteous, moral, virtuous, principled
"a just and democratic society"
antonyms: unfair
(of treatment) deserved or appropriate in the circumstances.
"we all get our just deserts"
synonyms: deserved, well deserved, well earned, earned, merited; More
rightful, due, fitting, appropriate, suitable;
formalcondign;
archaicmeet
"a just reward"
antonyms: undeserved
(of an opinion or appraisal) well founded; justifiable.
"these simplistic approaches have been the subject of just criticism"
synonyms: valid, sound, well founded, justified, justifiable, warranted, legitimate
"just criticism"
antonyms: unfair, wrongful
adverb adverb: just
1.
exactly.
"that's just what I need"
synonyms: exactly, precisely, absolutely, completely, totally, entirely,
perfectly, utterly, wholly, thoroughly, in all respects;
"she's just right for him"
exactly or almost exactly at this or that moment.
"she's just coming"
2.
very recently; in the immediate past.
"I've just seen the local paper"
synonyms: a moment ago, a second ago, a short time ago, very recently, not long ago
"I just saw him"
3.
barely; by a little.
"I got here just after nine"
synonyms: narrowly, only just, by a hair's breadth; More
barely, scarcely, hardly;
informally the skin of one's teeth, by a whisker
"we just made it"
4.
simply; only; no more than.
"they were just interested in making money"
synonyms: only, merely, simply, but, nothing but, no more than
"she's just a child"
really; absolutely (used for emphasis).
"they're just great"
synonyms: really, absolutely, completely, positively, entirely, totally, quite; More
indeed, truly
"the color's just fantastic"
used as a polite formula for giving permission or making a request.
"just help yourselves"
possibly (used to indicate a slight chance of something happening or being true).
"it might just help"
5.
British
expressing agreement.
"“Simon really messed things up.” “Didn't he just?”"
Thus you can say I ate only pizza (and not salad); I just finished eating pizza (thus I'm no longer hungry); Only I ate pizza (other people ate salad); and I eat only pizza (nothing else).